atspiroot: Stub out GetRelationSet
authorMatthias Clasen <mclasen@redhat.com>
Sat, 10 Oct 2020 14:43:07 +0000 (10:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 12 Oct 2020 19:10:40 +0000 (15:10 -0400)
This needs to be fully implemented, for now sending
an empty relation set back prevents accerciser from
getting hung up.

gtk/a11y/gtkatspiroot.c

index 5e74bf6d46d12beea0f5d0fb3e0a002b15528889..3e938d3fa1bb290cef500ccacf1acccaa75ff9c0 100644 (file)
@@ -331,6 +331,11 @@ handle_accessible_method (GDBusConnection       *connection,
     {
       g_dbus_method_invocation_return_value (invocation, g_variant_new ("(i)", -1));
     }
+  else if (g_strcmp0 (method_name, "GetRelationSet") == 0)
+    {
+      GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("a(ua(so))"));
+      g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a(ua(so)))", &builder));
+    }
   else if (g_strcmp0 (method_name, "GetInterfaces") == 0)
     {
       GVariantBuilder builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("as"));